<!--<include file="public+header">-->

<!--{script}-->
jQuery.validator.addMethod("isFlash",function(value,element){
	var sExtend=value.substring(value.lastIndexOf(".")+1);
	return !value || (sExtend=='swf');
},"请填写swf格式的flash文件");

function updateVip(){
	$("#submit_button").attr("disabled", "disabled");
	$("#submit_button").val( 'add...' );
	Q.AjaxSubmit('vipAdd','<!--{:Q::U('jiajucompanyvip/vip')}-->','',complete);
}

function complete(data,status){
	$("#submit_button").attr("disabled", false);
	$("#submit_button").val( '更新' );
	if(status==1){
	}
}

checkForm(updateVip);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current">修改VIP设置</a></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
			<div class="module_content">
				<ul>
					<li>关于微博账号和客服代码的填写请认真看说明。</li>
				</ul>
			</div>
		</article>

		<article class="module width_full">
			<header><h3 class="tabs_involved">修改VIP设置</h3>
				<ul class="tabs">
					<li class="active"><a href="<!--{:Q::U('jiajucompanyvip/index')}-->">VIP资料</a></li>
				</ul>
			</header>
			<form action="" method="post" id="vipAdd" class="validate">
				<div class="module_content">
					<fieldset>
						<label for="jiajucompany_scale">个性域名</label>
						<p>
							<!--<if condition="!empty($GLOBALS['_company_']['jiajucompany_domain'])">-->
							<b style="color:#ED145B;"><!--{$GLOBALS['_company_']['jiajucompany_domain']}--></b>&nbsp;<a href="<!--{:Jiaju_Extend::getShopUrl($GLOBALS['_company_'])}-->" target="_blank">[查看]</a>
							<!--</if>-->
						</p>
						<div class="description input_tips">只能设定一次！如：114ms.vip.114.ms，填写domain。</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompanyvip_music">背景音乐</label>
						<input type="text" name="jiajucompanyvip_music" id="jiajucompanyvip_music" value="<!--{$arrCompanyVip['jiajucompanyvip_music']}-->" class="{maxlength:250,url:true}"/>
						<div class="description input_tips">网络链接如：http://www.114.ms/music.mp3，须是*.mp3 格式的文件</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompanyvip_sinaweibo">新浪微博</label>
						<input type="text" name="jiajucompanyvip_sinaweibo" id="jiajucompanyvip_sinaweibo" value="<!--{$arrCompanyVip['jiajucompanyvip_sinaweibo']}-->" class="{maxlength:50}"/>
						<div class="description input_tips">请填写新浪微博名称，如：http://weibo.com/114ms，请填写114ms</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompanyvip_qqweibo">腾讯微博</label>
						<input type="text" name="jiajucompanyvip_qqweibo" id="jiajucompanyvip_qqweibo" value="<!--{$arrCompanyVip['jiajucompanyvip_qqweibo']}-->" class="{maxlength:50}"/>
						<div class="description input_tips">请填写腾讯微博名称，如：http://t.qq.com/114ms，请填写114ms</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompanyvip_kfcode">客服代码</label>
						<input type="text" name="jiajucompanyvip_kfcode" id="jiajucompanyvip_kfcode" value="<!--{$arrCompanyVip['jiajucompanyvip_kfcode']|htmlspecialchars}-->" class="{maxlength:1500}"/>
						<div class="description input_tips">填写第三方的客服代码</div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="jiajucompanyvip_video">视频Flash地址</label>
						<input type="text" name="jiajucompanyvip_video" id="jiajucompanyvip_video" value="<!--{$arrCompanyVip['jiajucompanyvip_video']}-->" class="{isFlash:true,maxlength:200}"/>
						<div class="description input_tips">填写一个正确的falsh地址，如优酷网的视频等等。</div>
						<p class="input_errortips"></p>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="submit" id="submit_button" value="更新" class="alt_btn">
						&nbsp;<input type="reset" value="<!--<lang package='Template'>-->重置<!--</lang>-->">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->